package common;

import java.util.Hashtable;

import math.Relation;

public class Relations {
	
	private static Hashtable<String, Relation> rels = new Hashtable<String, Relation>();
	
	public static void addRelation(Relation r) {
		
		rels.put(r.getId(), r);
		
		System.out.println("New relation: " + r.getId());
	}
	
	public static Relation getRelation(String id) {
		
		return rels.get(id);
	}

}
